<%@ page language="java" contentType="text/html;charset=UTF-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<%@ include file="/commons/messages.jsp"%>
<html>
<head>
<script language="JavaScript" type="text/javascript"src="${ctx}/scripts/div/common.js"></script>
<script  type="text/javascript">
function closeWinAndRefresh(){
	var flag='${flag}';

	if(flag == 'addGoOut'){ //增加
		iframe = findFrame('proRightModIfm');
		iframe.refreshList();
	}else if (flag == 'notAuditFinish'){//没有审核完毕,不能变为历史业主
		iframe = findFrame('proRightModIfm');
		iframe.refreshHistory('notAuditFinish');
	}else if(flag == "moneyNotZero"){ //帐户金额不为0,不能变为历史业主
		iframe = findFrame('proRightModIfm');
		iframe.refreshHistory('moneyNotZero');
	}else if(flag == "toHisOwersOK" ){ //变为历史业主操作成功
		var	iframe = findFrame("proRightModIfm");
		iframe.refreshHistory("toHisOwersOK");
	}else if (flag == "supportAntiAudit"){ //客服经理进行反审核成功
		iframe = findFrame('proRightModIfm');
		iframe.refreshList();
	}else if (flag == "financeAntiAudit"){ //财务经理进行反审核成功
		iframe = findFrame('proRightModIfm');
		iframe.refreshList();
	}else if (flag == "clientAudit"){ //客服经理审核成功
		iframe = findFrame('proRightModIfm');
		iframe.refreshList();
	}else if (flag == "financeAudit"){//财务经理审核成功
		iframe = findFrame('proRightModIfm');
		iframe.refreshList();
	}else if (flag == "editGoOut"){//修改成功
		iframe = findFrame('proRightModIfm');
		iframe.refreshList();
	}else if (flag == "changeSubmit"){ //提交成功，刷新页面
		iframe = findFrame('proRightModIfm');
		iframe.chargeSubmitRef();
	}
	windowClose();//关闭div window
}
closeWinAndRefresh();
</script>
</head>
<body>
</body>
</html>